<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>支付成功 - ShoppingEase</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#FF7D00',
                        success: '#00B42A',
                        warning: '#FF7D00',
                        danger: '#F53F3F',
                        dark: '#1D2129',
                        'dark-2': '#4E5969',
                        'light-1': '#F2F3F5',
                        'light-2': '#E5E6EB',
                        'light-3': '#C9CDD4'
                    },
                    fontFamily: {
                        inter: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
</head>
<body class="font-inter bg-gray-50 text-dark">
    <!-- 顶部通知栏 -->
    <div class="bg-primary text-white text-center py-1 px-4 text-sm">
        <p>全场满199元免运费 | 新用户注册立减50元 <a href="register.html" class="underline font-medium">立即注册</a></p>
    </div>

    <!-- 导航栏 -->
    <header class="sticky top-0 z-50 bg-white shadow-sm">
        <div class="container mx-auto px-4">
            <div class="flex items-center justify-between h-16 md:h-20">
                <!-- Logo -->
                <a href="index.html" class="flex items-center space-x-2">
                    <i class="fa fa-shopping-bag text-primary text-2xl"></i>
                    <span class="text-xl font-bold text-primary">ShoppingEase</span>
                </a>

                <!-- 搜索栏 - 中等屏幕以上显示 -->
                <div class="hidden md:flex items-center flex-1 max-w-xl mx-8">
                    <div class="relative w-full">
                        <input type="text" placeholder="搜索商品、品牌或分类..." 
                            class="w-full py-2 pl-10 pr-4 rounded-full border border-light-2 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition-all">
                        <button class="absolute left-3 top-1/2 transform -translate-y-1/2 text-light-3 hover:text-primary transition-colors">
                            <i class="fa fa-search"></i>
                        </button>
                        <button class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-primary text-white py-1 px-4 rounded-full hover:bg-primary/90 transition-colors">
                            搜索
                        </button>
                    </div>
                </div>

                <!-- 用户操作区 -->
                <div class="flex items-center space-x-4">
                    <!-- 搜索按钮 - 小屏幕显示 -->
                    <button class="md:hidden text-dark-2 hover:text-primary transition-colors">
                        <i class="fa fa-search text-xl"></i>
                    </button>
                    
                    <!-- 购物车 -->
                    <a href="cart.html" class="relative text-dark-2 hover:text-primary transition-colors">
                        <i class="fa fa-shopping-cart text-xl"></i>
                        <span id="cart-count" class="absolute -top-2 -right-2 bg-secondary text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">0</span>
                    </a>
                    
                    <!-- 用户菜单 -->
                    <div id="user-menu-container" class="relative">
                        <!-- 未登录状态 -->
                        <div id="guest-menu" class="flex items-center space-x-2">
                            <a href="login.html" class="text-dark-2 hover:text-primary transition-colors">
                                <i class="fa fa-user-circle-o text-xl"></i>
                            </a>
                            <div class="hidden md:block">
                                <a href="login.html" class="text-dark-2 hover:text-primary transition-colors">登录</a>
                                <span class="text-light-3 mx-1">/</span>
                                <a href="register.html" class="text-dark-2 hover:text-primary transition-colors">注册</a>
                            </div>
                        </div>
                        
                        <!-- 已登录状态 -->
                        <div id="user-menu" class="hidden">
                            <button id="profile-btn" class="flex items-center space-x-2 text-dark-2 hover:text-primary transition-colors">
                                <i class="fa fa-user-circle text-xl"></i>
                                <span id="username-display" class="hidden md:inline">用户名</span>
                                <i class="fa fa-angle-down text-xs"></i>
                            </button>
                            <div id="profile-dropdown" class="hidden absolute right-0 mt-2 w-48 bg-white rounded-lg shadow-lg py-2 z-50">
                                <a href="profile.html" class="block px-4 py-2 text-sm text-dark-2 hover:bg-light-1 hover:text-primary transition-colors">
                                    <i class="fa fa-user-o mr-2"></i>个人中心
                                </a>
                                <a href="#" class="block px-4 py-2 text-sm text-dark-2 hover:bg-light-1 hover:text-primary transition-colors">
                                    <i class="fa fa-history mr-2"></i>我的订单
                                </a>
                                <a href="#" class="block px-4 py-2 text-sm text-dark-2 hover:bg-light-1 hover:text-primary transition-colors">
                                    <i class="fa fa-heart-o mr-2"></i>我的收藏
                                </a>
                                <div class="border-t border-light-2 my-1"></div>
                                <a href="#" id="logout-btn" class="block px-4 py-2 text-sm text-danger hover:bg-light-1 transition-colors">
                                    <i class="fa fa-sign-out mr-2"></i>退出登录
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 移动端搜索框 - 默认隐藏 -->
            <div class="py-3 hidden">
                <div class="relative w-full">
                    <input type="text" placeholder="搜索商品、品牌或分类..." 
                        class="w-full py-2 pl-10 pr-4 rounded-full border border-light-2 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition-all">
                    <button class="absolute left-3 top-1/2 transform -translate-y-1/2 text-light-3 hover:text-primary transition-colors">
                        <i class="fa fa-search"></i>
                    </button>
                    <button class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-primary text-white py-1 px-4 rounded-full hover:bg-primary/90 transition-colors">
                        搜索
                    </button>
                </div>
            </div>
        </div>
    </header>

    <main class="py-12">
        <div class="container mx-auto px-4">
            <!-- 面包屑导航 -->
            <nav class="flex mb-6 text-sm">
                <a href="index.html" class="text-dark-2 hover:text-primary">首页</a>
                <span class="mx-2 text-light-3">/</span>
                <a href="cart.html" class="text-dark-2 hover:text-primary">购物车</a>
                <span class="mx-2 text-light-3">/</span>
                <a href="checkout.html" class="text-dark-2 hover:text-primary">结算</a>
                <span class="mx-2 text-light-3">/</span>
                <span class="text-dark">支付成功</span>
            </nav>

            <!-- 成功消息 -->
            <div class="max-w-2xl mx-auto bg-white rounded-lg shadow-sm p-8 text-center">
                <div class="w-20 h-20 rounded-full bg-success/10 flex items-center justify-center mx-auto mb-6">
                    <i class="fa fa-check text-3xl text-success"></i>
                </div>
                
                <h1 class="text-3xl font-bold mb-2">支付成功</h1>
                <p class="text-dark-2 mb-8">您的订单已支付成功，感谢您的购买！</p>
                
                <!-- 订单信息 -->
                <div class="bg-light-1 rounded-lg p-6 mb-8 text-left">
                    <div class="flex justify-between mb-4 pb-4 border-b border-light-2">
                        <div>
                            <p class="text-dark-2">订单编号</p>
                            <p class="font-medium">SE202506100001</p>
                        </div>
                        <div>
                            <p class="text-dark-2">支付时间</p>
                            <p class="font-medium">2025-06-10 14:30:25</p>
                        </div>
                    </div>
                    
                    <div class="flex justify-between mb-4">
                        <p class="text-dark-2">支付方式</p>
                        <p class="font-medium">在线支付</p>
                    </div>
                    
                    <div class="flex justify-between">
                        <p class="text-dark-2">实付款</p>
                        <p class="font-medium text-primary text-lg">¥2,325.00</p>
                    </div>
                </div>
                
                <!-- 操作按钮 -->
                <div class="flex flex-col sm:flex-row justify-center gap-4">
                    <a href="order-details.html" class="px-6 py-3 bg-primary text-white rounded-lg font-medium hover:bg-primary/90 transition-colors">
                        查看订单详情
                    </a>
                    <a href="index.html" class="px-6 py-3 bg-white text-primary border border-primary rounded-lg font-medium hover:bg-primary/5 transition-colors">
                        继续购物
                    </a>
                </div>
                
                <!-- 配送信息 -->
                <div class="mt-10 pt-8 border-t border-light-2">
                    <h3 class="text-lg font-bold mb-4">配送信息</h3>
                    
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-4 text-left">
                        <div>
                            <p class="text-dark-2 text-sm">收货人</p>
                            <p class="font-medium">张三</p>
                        </div>
                        
                        <div>
                            <p class="text-dark-2 text-sm">联系电话</p>
                            <p class="font-medium">13800138000</p>
                        </div>
                        
                        <div>
                            <p class="text-dark-2 text-sm">收货地址</p>
                            <p class="font-medium">北京市朝阳区建国路88号现代城SOHO B座1501室</p>
                        </div>
                    </div>
                    
                    <div class="mt-6">
                        <p class="text-dark-2 text-sm">配送方式</p>
                        <p class="font-medium">顺丰速运</p>
                    </div>
                    
                    <div class="mt-4">
                        <p class="text-success flex items-center">
                            <i class="fa fa-info-circle mr-2"></i>
                            我们将尽快为您发货，您可以在"我的订单"中查看物流状态。
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- 页脚 -->
    <footer class="bg-dark text-white py-12 mt-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-lg font-bold mb-4">关于我们</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-light-3 hover:text-white transition-colors">公司简介</a></li>
                        <li><a href="#" class="text-light-3 hover:text-white transition-colors">加入我们</a></li>
                        <li><a href="#" class="text-light-3 hover:text-white transition-colors">联系方式</a></li>
                        <li><a href="#" class="text-light-3 hover:text-white transition-colors">隐私政策</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">帮助中心</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-light-3 hover:text-white transition-colors">常见问题</a></li>
                        <li><a href="#" class="text-light-3 hover:text-white transition-colors">购物指南</a></li>
                        <li><a href="#" class="text-light-3 hover:text-white transition-colors">订单查询</a></li>
                        <li><a href="#" class="text-light-3 hover:text-white transition-colors">售后服务</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">支付方式</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-light-3 hover:text-white transition-colors">在线支付</a></li>
                        <li><a href="#" class="text-light-3 hover:text-white transition-colors">银行转账</a></li>
                        <li><a href="#" class="text-light-3 hover:text-white transition-colors">货到付款</a></li>
                        <li><a href="#" class="text-light-3 hover:text-white transition-colors">优惠券说明</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">联系我们</h3>
                    <ul class="space-y-3">
                        <li class="flex items-start">
                            <i class="fa fa-map-marker mt-1 mr-3 text-primary"></i>
                            <span class="text-light-3">北京市朝阳区建国路88号现代城SOHO B座1501室</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-phone mr-3 text-primary"></i>
                            <span class="text-light-3">400-888-8888</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-envelope mr-3 text-primary"></i>
                            <span class="text-light-3">support@shoppingease.com</span>
                        </li>
                    </ul>
                    
                    <div class="mt-4 flex space-x-4">
                        <a href="#" class="w-10 h-10 rounded-full bg-dark-2 flex items-center justify-center hover:bg-primary transition-colors">
                            <i class="fa fa-weixin"></i>
                        </a>
                        <a href="#" class="w-10 h-10 rounded-full bg-dark-2 flex items-center justify-center hover:bg-primary transition-colors">
                            <i class="fa fa-weibo"></i>
                        </a>
                        <a href="#" class="w-10 h-10 rounded-full bg-dark-2 flex items-center justify-center hover:bg-primary transition-colors">
                            <i class="fa fa-instagram"></i>
                        </a>
                        <a href="#" class="w-10 h-10 rounded-full bg-dark-2 flex items-center justify-center hover:bg-primary transition-colors">
                            <i class="fa fa-twitter"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <div class="border-t border-dark-2 mt-8 pt-8 text-center text-light-3 text-sm">
                <p>© 2025 ShoppingEase. 保留所有权利。</p>
            </div>
        </div>
    </footer>

    <script>
        // 切换用户菜单显示隐藏
        document.getElementById('profile-btn').addEventListener('click', function() {
            document.getElementById('profile-dropdown').classList.toggle('hidden');
        });
        
        // 点击页面其他地方关闭用户菜单
        document.addEventListener('click', function(event) {
            const dropdown = document.getElementById('profile-dropdown');
            const profileBtn = document.getElementById('profile-btn');
            
            if (!profileBtn.contains(event.target) && !dropdown.contains(event.target)) {
                dropdown.classList.add('hidden');
            }
        });
        
        // 模拟用户已登录
        document.addEventListener('DOMContentLoaded', function() {
            // 隐藏未登录菜单，显示已登录菜单
            document.getElementById('guest-menu').classList.add('hidden');
            document.getElementById('user-menu').classList.remove('hidden');
            document.getElementById('username-display').textContent = '张三';
            
            // 清空购物车计数
            document.getElementById('cart-count').textContent = '0';
        });
    </script>
</body>
</html>    